#include <iostream>
using namespace std;
int main() {
  int i;
  cin >> i;
  // cout << bool(i) << endl;
  bool b = i;
  cout << b << endl;
}